package com.mf.all.entity.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalDate;

import lombok.Data;

import java.io.Serial;
import java.util.List;

/**
 * 部门表
 *
 * @date 2025-04-02 22:36:46
 */
@Data
@TableName("t_dept")
public class DtoDept implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId

    private Integer id;
    /**
     * 部门名称
     */

    private String dName;
    /**
     * 部门编号
     */

    private String dCode;
    /**
     * 负责人id
     */

    private Integer principalId;
    /**
     * 所属部门
     */

    private Integer pid;
    /**
     * 排序
     */

    private Integer sort;
    /**
     * 0-禁用；1-启用
     */

    private Integer status;
    /**
     *
     */

    private LocalDateTime createdTime;
    /**
     *
     */

    private LocalDateTime updateTime;

    @TableField(exist = false)
    private List<DtoDept> children;

}
